<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>TDsign for Blazor - 开源级企业级设计体系</title>
    <base href="/" />
    <link rel="stylesheet" href="_content/TDesign/tdesign-blazor.css" />
    <link rel="stylesheet" href="_content/TDesign.Docs.Shared/css/app.css" />
    <link rel="stylesheet" href="_content/TDesign.Docs.Shared/lib/highlightjs/styles/vs2015.min.css"/>
    <link rel="shortcut icon" href="favicon.ico" />
</head>

<body>
    <div id="app">
        <div>
            <img src="img/tdesign-blazor-banner.png" style="display:flex;transform:scale(0.5);width:100%;" />
            <div style="display:flex;justify-content:center">
                <svg fill="none" viewBox="0 0 16 16" width="1em" height="1em" class="t-icon t-icon-loading" style="font-size:2rem;display:inline-block;">
                    <path fill="currentColor" d="M8 1.5a6.5 6.5 0 000 13v-1.63A4.87 4.87 0 1112.88 8h1.62A6.5 6.5 0 008 1.5z" fill-opacity="0.9"></path>
                </svg>
                <span style="font-size:1.8rem;display:inline-block;margin-left:8px">
                    Loading...
                </span>
            </div>
            <div style="margin-top: 150px; display: flex; justify-content: center;color:#666">
                <a href="https://beian.miit.gov.cn/" target="_blank" style="text-decoration:none">京ICP备2023000917号-1</a>
            </div>
        </div>
    </div>

    <script src="_framework/blazor.webassembly.js" autostart="false"></script>
    <script>navigator.serviceWorker.register('service-worker.js');</script>
    <script src="_content/TDesign.Docs.Shared/lib/highlightjs/highlight.min.js"></script>
    <script src="_content/TDesign.Docs.Shared/js/cshtml-razor.min.js"></script>
    <script src="_content/TDesign.Docs.Shared/js/app.js"></script>
    <script>
        window.highlight = () => {
            hljs.highlightAll();
        }
    </script>
    <script type="module">
        import { BrotliDecode } from './decode.min.js';
        Blazor.start({
            loadBootResource: function (type, name, defaultUri, integrity) {
                if (type !== 'dotnetjs' && location.hostname !== 'localhost') {
                    return (async function () {
                        const response = await fetch(defaultUri + '.br', { cache: 'no-cache' });
                        if (!response.ok) {
                            throw new Error(response.statusText);
                        }
                        const originalResponseBuffer = await response.arrayBuffer();
                        const originalResponseArray = new Int8Array(originalResponseBuffer);
                        const decompressedResponseArray = BrotliDecode(originalResponseArray);
                        const contentType = type ===
                            'dotnetwasm' ? 'application/wasm' : 'application/octet-stream';
                        return new Response(decompressedResponseArray,
                            { headers: { 'content-type': contentType } });
                    })();
                }
            }
        });
    </script>

</body>
</html>
